package com.foreknow.elmboot.controller;

import com.foreknow.elmboot.po.OrderDetail;
import com.foreknow.elmboot.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/OrderDetailController")
public class OrderDetailController {
    @Autowired
    private OrderDetailService orderDetailService;
    @RequestMapping("/orderDetailList")
    public List<OrderDetail> orderDetailList(Integer orderId) {
        return orderDetailService.orderDetailList(orderId);
    }
}
